import request from "@/utils/http";

// idaas登录相关接口
// 获取配置信息
export const getIdaasConfig = (source) => request({
    url: '/api/blade-auth/sso/idaas/pass/getConfig?source=h5',
    method: 'get',
    params: {
        source
    },
})

// 根据idaas授权码进行登录
export const loginByIdaasCode = (code, source) => request({
    url: '/api/blade-auth/sso/idaas/pass/loginByCode',
    method: 'get',
    params: {
        code,
        source
    },
    authorization: false
})